<!--  -->
<template>
  <div class="bottom-bar">
    <div class="bar-item">
      <div class="bar-left">
        <div>
          <i class="iconfont el-icon-service service"></i>
          <span class="text">客服</span>
        </div>
        <div>
          <i class="iconfont el-icon-s-shop"></i>
          <span class="text">店铺</span>
        </div>
        <div>
          <i class="iconfont el-icon-star-off"></i>
          <span class="text">收藏</span>
        </div>
      </div>
      <div class="bar-right">
        <div class="cart" @click="addToCart">加入购物车</div>
        <div class="buy">购买</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  methods: {
    addToCart(){
      this.$emit('addCart')
    }
  }
};
</script>

<style scoped>
.bottom-bar {
  height: 49px;
  background: #fff;
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
}
.bar-item {
  display: flex;
  flex: 1;
}
.bar-left {
  flex: 1;
  width: 200px;
  display: flex;
  text-align: center;
  line-height: 49px;
}
.bar-left div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bar-left .text {
  font-size: 14px;
  margin-top: -15px;
}
.bar-left i {
    margin-top: 5px;
  font-size: 27px;
  vertical-align: middle;
}
.service{
    color: #FF799B;
}
.bar-right {
  flex: 1;
  display: flex;
  line-height: 49px;
  font-size: 18px;
}
.bar-right div {
  flex: 1;
}
.bar-right .cart {
  background: #FFDC0E;
}
.bar-right .buy {
    color: #fff;
  background: #FF799B;
}
</style>